package com.javase.A05;

public class test {
    public static void main(String[] args) {
        Student stu = new Student(10001,1,"张三",'男',18);
        System.out.println("学号："+stu.getStuNo());
        System.out.println("姓名：" + stu.getName());
        System.out.println("班号" + stu.getClassNo());
        System.out.println("性别：" + stu.getAge());
        System.out.println("年龄：" + stu.getAge());
        System.out.println("修改年龄：");
        stu.setAge(21);
        System.out.println("修改后的年龄" + stu.getAge());
    }
}
